<template>
    <div class="search-box">
        <mdui-text-field class="ip" end-icon="search" label="搜索"></mdui-text-field>
    </div>
</template>

<style scoped>
.search-box {
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
}
.ip {
    width: 200px;
    margin-top: 30px;
    transition: all 0.3s;
}
/*获得焦点*/
.ip:focus {
    width: 70%;
}
</style>